repo: Add add-remotes-config-dir option
authorDan Nicholson <nicholson@endlessm.com>
Fri, 8 Sep 2017 15:18:10 +0000 (10:18 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 11 Sep 2017 10:53:20 +0000 (10:53 +0000)
commitadac42b6effbc748ade9f135a6b3f284a67e9dd4
tree93a58192d36076e3198527dd6f55c8a894d59969
parentccbbf77c7107e015b5f9ed5084504b6436f2353a
repo: Add add-remotes-config-dir option

This option allows a repo to explicitly opt out of adding new remotes in
a remotes configuration directory. This currently defaults to true for
system repos and false for non-system repos to maintain legacy behavior
that non-system repos don't add remotes in a configuration directory.
That would be problematic for flatpak, which specifies a remotes config
dir but adds remotes in ways that are incompatible with it.

So, what this really does is allow system repos to control whether they
want to add remotes in the config dir or not. That's important if your
flatpak repo is the system repo like at Endless.

Closes: #1134
Closes: #1155
Approved by: cgwalters
man/ostree.repo-config.xml
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
tests/admin-test.sh
tests/test-remotes-config-dir.js